<?php
session_start();
include_once("config.php");
checkLoggedIn("yes");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es" dir="ltr">
  <head>
    <title><?php echo $title ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >-->
<meta name="language" content="es" />
<meta name="robots" content="all,index,follow" />
<meta name="description" content="Une a la gente a trav&eacute;s de la mas completa gama de Servicios Postales, Telegr&aacute;ficos y Log&iacute;sticos, Nacionales e Internacionales." />
<meta name="keywords" content="Correo argentino, Correo argentina, Correo oficial, C&oacute;digo postal, Sucursales correo argentino, Seguimiento correo argentino, C&oacute;digos postales argentina, Elecciones, Elecciones argentinas, Pad
rones electorales, Carta documento, Log&iacute;stica, Transporte, Encomiendas, Postales, Filatelia, Estampillas, Sellos, Telegramas, CPA, EMS, Western Union, Pago facil, Giros" />
<link rel="icon" type="image/x-icon" href="http://www.correoargentino.com.ar/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.correoargentino.com.ar/favicon.ico" />
<link type="text/css" rel="stylesheet" href="http://www.correoargentino.com.ar/assets/13444574244881c64d590cbc087974adfa1f20e80b.css" media="screen" />
<script type="text/javascript" src="http://www.correoargentino.com.ar/assets/133253376677497c6d6640312317949df4b22cc166.js" charset="UTF-8"></script>

</head>
<body> 
<div id="body-wrapper">
<div id="body">        
<div class="content">  
<div class="description">
<div class="results-wrapper">

<?php

echo "<div class=\"body\">";
doCSS();
print("Bienvenido:  <b>".$_SESSION["login"]."</b><br>\n");
print("<a href=\"logout.php"."\">Logout</a><br>");
print("<a href=\"members.php"."\">Volver</a><br>");

$result = mysql_query("SELECT * from ".$tabla_tracking." where user_id ='".$_SESSION["login"]."'", $link);
$numlineas = mysql_num_rows($result);

for ($linea = 0; $linea < $numlineas ; $linea++)
{
	echo "<br><div class=\"results-title\"><strong>Registro: ".mysql_result($result,$linea,"trk")." - ".mysql_result($result,$linea,"comentario")."</strong></div><br>";
	$handle = fopen("http://www.correoargentino.com.ar/seguimiento_envios/consultar/oidn/".mysql_result($result,$linea,"trk"),"r");
	while (($buffer = fgets($handle)) !== false) {
        echo $buffer;
    	}

}
echo "</div></div></div></div>";
echo "</tbody>";
echo "</table>";
echo "</div>";
?>
</body>
</html>
